const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: './',
  lintOnSave: false,
  //vue-cli3.0 里面的 vue.config.js做配置
  devServer: {
    proxy: {
     '/api': {
        target: 'http://10.68.155.147:8081/bookstore_servlet', // 目标路径
        changeOrigin: true, // 是否跨域
        pathRewrite: {
          '^/api': '' // 重写路径
        }
      }
    }
  }
})
